import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/Home'
  },
  {
    path: '/Home',
    name: 'Home',
    component: Home
  },
  {
    path: '/Classify',
    name: 'Classify',
    component: () => import('../views/Classify/Classify.vue')
  },{
    path: '/Shop',
    name: 'Shop',
    component: () => import('../views/Shop.vue')
  },{
    path: '/my',
    name: 'my',
    component: () => import('../views/my.vue')
  },{
    path: '/dateil',
    name: 'dateil',
    component: () => import('../views/dateil.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
